From d70f9c0a6c92020bcbbb922ae8b268bbe6493323 Mon Sep 17 00:00:00 2001 From: "arun.sharma@intel.com[kaf24]" Date: Tue, 24 May 2005 21:36:40 +0000 Subject: [PATCH] bitkeeper revision 1.1539 (42939e68t9DDgqpBZmkD0dpuIEiwBQ) [PATCH] xen-libxc-static-build.patch Fix build of the static library. As it was depending on an undefined objects variable (OBJS), its dependency list was null and thus it ended up empty. Also optimize the depedency checking so we don't need a submake. Not too great an optimization, but it makes it short :) Signed-off-by: Inaky Perez-Gonzalez Signed-off-by: Arun Sharma --- tools/libxc/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index 66f01d9489..7f85858d85 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -45,8 +45,7 @@ PIC_OBJS := $(patsubst %.c,%.opic,$(SRCS)) LIB := libxc.a libxc.so libxc.so.$(MAJOR) libxc.so.$(MAJOR).$(MINOR) all: build -build: check-for-zlib mk-symlinks - $(MAKE) $(LIB) +build: check-for-zlib mk-symlinks $(LIB) check-for-zlib: @if [ ! -e /usr/include/zlib.h ]; then \ @@ -93,7 +92,7 @@ rpm: build mv staging/i386/*.rpm . rm -rf staging -libxc.a: $(OBJS) +libxc.a: $(LIB_OBJS) $(AR) rc $@ $^ libxc.so: libxc.so.$(MAJOR) -- 2.30.2